<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<% 
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<base href="<%=basePath %>"/>
<html>
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>忘记密码</title>
  <script src="js/vue.js"></script>
  <link rel="stylesheet" href="https://unpkg.com/element-ui@2.14.1/lib/theme-chalk/index.css">
  <script src="https://unpkg.com/element-ui@2.14.1/lib/index.js"></script>
  <style>
    .forget-password {
      margin: 50px auto;
    }

    .submit-btn {
      margin: 0 60px;
    }

    .title {
      text-align: center;
      margin: 0 auto 30px auto;
    }

    .text-title {
      font-size: 1.2em;
    }

    .box-card {
      width: 480px;

    }

    .logo {
      width: 300px;
      height: 300px;
      position: relative;
      float: left;
      left: -100px;
    }
  </style>
</head>

<body>
  <div id="app">
    <el-container style="height: 650px;">
      <div class="forget-password">
        <img src="../images/image01.jpg" class="logo">
        <el-main>
          <el-card class="box-card">
            <div class="text item">
              <div class="title">
                <span class="text-title">忘记密码</span>
              </div>
              <el-form :inline="true" :model="formInline" class="demo-form-inline">
                <el-form-item label="手机号">
                  <el-input v-model="formInline.user" placeholder="手机号"></el-input>
                </el-form-item>
                <el-button plain :disabled="false">发送验证码</el-button><br>
                <el-form-item label="验证码">
                  <el-input v-model="formInline.captcha" placeholder="验证码"></el-input>
                </el-form-item><br>
                <div class="submit-btn">
                  <el-button type="primary" native-type="submit" @click="onSubmit" plain>提 交</el-button>
                </div>
              </el-form>
            </div>
          </el-card>

        </el-main>
      </div>
    </el-container>

  </div>
  <script>
    new Vue({
      el: "#app",
      data: {
        formInline: {
          user: '',
          region: ''
        }
      },
      methods: {
        onSubmit() {
          console.log('submit!');
        }
      }
    })
  </script>
</body>
</html>